#include <iostream>
using std::cout;
using std::ostream;

#include "v4_ch15_basket.h"
void print_total(ostream&, const Item_base&, size_t);

int bsk2() {
	Item_base base("999999999", 24.99);
	Bulk_item derived("888888888", 35.99, 5, .10);
// print_total makes a virtual call to net_price
	print_total(cout, base, 10);    // calls Item_base::net_price
	print_total(cout, derived, 10); // calls Bulk_item::net_price

	Item_base *baseP = &derived;

// calls version from the base class regardless of the dynamic type of baseP
	double d = baseP->Item_base::net_price(42);
}

//int main(){
//	return bsk2();
//}
